package com.csi.okr.mobile.common.entity;

import java.math.BigDecimal;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 员工组织实体类
 */
@Entity
@Table(name = "T_OKR_EMPL_ORG", schema = "PSGIS")
public class TOkrEmplOrg implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	
	private TOkrEmplOrgId id;
	private BigDecimal isOkr;
	private BigDecimal isLeader;
	private BigDecimal isOkrChecker;
	private String postCode;
	private BigDecimal isBelong;

	public TOkrEmplOrg() {
	}

	public TOkrEmplOrg(TOkrEmplOrgId id) {
		this.id = id;
	}

	public TOkrEmplOrg(TOkrEmplOrgId id, BigDecimal isOkr, BigDecimal isLeader, BigDecimal isOkrChecker,
			String postCode, BigDecimal isBelong) {
		this.id = id;
		this.isOkr = isOkr;
		this.isLeader = isLeader;
		this.isOkrChecker = isOkrChecker;
		this.postCode = postCode;
		this.isBelong = isBelong;
	}

	@EmbeddedId

	@AttributeOverrides({
			@AttributeOverride(name = "orgCode", column = @Column(name = "ORG_CODE", nullable = false, length = 32)),
			@AttributeOverride(name = "emplCode", column = @Column(name = "EMPL_CODE", nullable = false, length = 16)) })
	public TOkrEmplOrgId getId() {
		return this.id;
	}

	public void setId(TOkrEmplOrgId id) {
		this.id = id;
	}

	@Column(name = "IS_OKR", precision = 22, scale = 0)
	public BigDecimal getIsOkr() {
		return this.isOkr;
	}

	public void setIsOkr(BigDecimal isOkr) {
		this.isOkr = isOkr;
	}

	@Column(name = "IS_LEADER", precision = 22, scale = 0)
	public BigDecimal getIsLeader() {
		return this.isLeader;
	}

	public void setIsLeader(BigDecimal isLeader) {
		this.isLeader = isLeader;
	}

	@Column(name = "IS_OKR_CHECKER", precision = 22, scale = 0)
	public BigDecimal getIsOkrChecker() {
		return this.isOkrChecker;
	}

	public void setIsOkrChecker(BigDecimal isOkrChecker) {
		this.isOkrChecker = isOkrChecker;
	}

	@Column(name = "POST_CODE", length = 8)
	public String getPostCode() {
		return this.postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	@Column(name = "IS_BELONG", precision = 22, scale = 0)
	public BigDecimal getIsBelong() {
		return this.isBelong;
	}

	public void setIsBelong(BigDecimal isBelong) {
		this.isBelong = isBelong;
	}

}
